package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天主业务对象 p_chat
 *
 * @author ruoyi
 * @date 2022-08-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("聊天主业务对象")
public class PChatBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 对方用户id
     */
    @ApiModelProperty(value = "对方用户id", required = true)
    @NotNull(message = "对方用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long anotherId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;




}
